#ifndef APPLYCERTIFICATEFUNCTIONALITY_H
#define APPLYCERTIFICATEFUNCTIONALITY_H
#include "Modules/ModuleInterface.h"
#include "Modules/NetWorkInterface.h"
#include "functionalityInterface.h"

//这就是一个具体的功能模块
class applyCertificateFunctionality : public FunctionalityInterface
{
    Q_OBJECT
public:
    applyCertificateFunctionality(std::shared_ptr<NetworkInterface> network,
                                  std::shared_ptr<ModuleInterface> module);
    bool executeFunction() override;

    void stopNetwork();
public slots:
    void onDataArrival(qint64 readBytes);

private:
    std::shared_ptr<NetworkInterface> m_network;
    std::shared_ptr<ModuleInterface> m_module;
};

#endif // APPLYCERTIFICATEFUNCTIONALITY_H
